package com.jumeng.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumeng.enums.CourseEnum;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;

import java.math.BigDecimal;

@Data
@TableName("t_course")
public class CourseEntity extends BaseEntity{

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "code")
    private String code;

    @TableField(value = "course_name")
    private String courseName;

    /**
     * 描述
     */
    @TableField(value = "details")
    private String details;

    /**
     * 课程类别
     */
    @TableField(value = "course_type")
    private CourseEnum courseEnum;

    /**
     * 课程视频地址
     * @return
     */
    @TableField(value = "course_video_url")
    private String courseVideoUrl;

    /**
     * 课程封面图片地址
     * @return
     */
    @TableField(value = "course_img_url")
    private String courseImgUrl;

    /**
     * 课程价格
     * @return
     */
    @TableField(value = "price")
    private BigDecimal price;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public CourseEnum getCourseEnum() {
        return courseEnum;
    }

    public void setCourseEnum(CourseEnum courseEnum) {
        this.courseEnum = courseEnum;
    }
}
